<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Title</title>
</head>
<link href="../static/css/bootstrap.min.css" rel="stylesheet"/>
<link href="../static/css/bootstrap-combined.min.css" rel="stylesheet"/>
<script src="../static/js/jquery-3.2.0.min.js"></script>
<script src="../static/js/bootstrapValidator.js"></script>
<script src="../static/js/bootstrap.min.js"></script>
<script src="../static/js/AjaxModel.js"></script>
<script src="../static/js/Excomm.js"></script>

<body>
<div th:include="header::header"></div>

<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <div class="row-fluid">
                <div class="span3">
                </div>
                <div class="span6">
                    <table class="table">
                        <thead>
                        <tr>
                            <th>
                                电话
                            </th>
                            <th>
                                型号
                            </th>
                            <th>
                                描述
                            </th>
                            <th>
                                期望售卖价格
                            </th>
                            <th>
                                创建日期
                            </th>
                            <th>
                                是否处理
                            </th>
                        </tr>
                        </thead>
                        <tbody id="capplieOrderInfo">
                        <tr class="info">
                            <td th:text="${content.phone}">

                            </td>
                            <td th:text="${content.carXinghao}">

                            </td>
                            <td th:text="${content.carDescrip}">

                            </td>
                            <td th:text="${content.wantPrice}">

                            </td>
                            <td id="createTime">

                            </td>
                            <td id="isSale">

                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class="span3">
                </div>
            </div>
        </div>
    </div>
</div>
<script th:inline="javascript">
    $(function () {


        var s=[[${content}]];
        var status=s.isOver;
        var resultStatus;
        if(status==0){
            resultStatus="未处理";
        }else if (status==1){
            resultStatus="正在处理";
        }else if(status==2){
            resultStatus="已经处理";
        }
        $("#isSale").append(resultStatus);
        $("#createTime").append(Excomm.transDate(s.createTime));
        /*]]>*/
    })
</script>
</body>

</html>